package com.amigo.online.provider.manager.controller;

import javax.annotation.Resource;

import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.amigo.online.common.base.controller.BaseController;
import com.amigo.online.common.core.response.Response;
import com.amigo.online.provider.manager.service.GoodsImgTblService;

@RestController
@RequestMapping(value = "/goodsImgTbl", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class GoodsImgTblController extends BaseController {


    @Resource
    private GoodsImgTblService goodsImgTblService;


    @GetMapping(value = "/getGoodsImgTblList")
    public ResponseEntity<Response> getGoodsImgTblList(Long goodsId) {
        return success(goodsImgTblService.selectByGoodsId(goodsId));

    }


}
